package net.cyl.feign;

import net.cyl.util.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "cloud-shop-service")
public interface ProductFeignService {
    @GetMapping("/api/product/v1/detail/{productId}")
    JsonData  detail(@PathVariable("productId") Long productId);

}
